<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>客户详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/font.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/lib/layui/layui.js"
            charset="utf-8"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-body">
    <form class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>客户ID
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.id}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
            <label class="layui-form-label">
                <span class="x-red"></span>客户编号
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.no}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>客户姓名
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.name}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
            <label class="layui-form-label">
                <span class="x-red"></span>性别
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.gender == 0 ? '男':(customer.credit == 1?'女':'保密')}"
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>生日
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.birthday}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
            <label class="layui-form-label">
                <span class="x-red"></span>类型
            </label>
            <div class="layui-input-inline">
                <c:if test="${customer.type == 0}">
                    <input disabled value="普通客户" class="layui-input">
                </c:if>
                <c:if test="${customer.type == 1}">
                    <input disabled value="大客户" class="layui-input">
                </c:if>
                <c:if test="${customer.type == 2}">
                    <input disabled value="VIP客户" class="layui-input">
                </c:if>
                <c:if test="${customer.type == 3}">
                    <input disabled value="银卡客户" class="layui-input">
                </c:if>
                <c:if test="${customer.type == 4}">
                    <input disabled value="金卡客户" class="layui-input">
                </c:if>
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>状态
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.status == 0 ? '已禁用':(customer.credit == 1?'正常':'已流失')}"
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
            <label class="layui-form-label">
                <span class="x-red"></span>分配状态
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.assignStatus == 1 ? '已分配':'未分配'}"
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>手机
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.tel}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

            <label class="layui-form-label">
                <span class="x-red"></span>办公电话
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.officeTel}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>电子邮箱
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.email}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

            <label class="layui-form-label">
                <span class="x-red"></span>家庭电话
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.homeTel}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>价值等级
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.valueLevel}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

            <label class="layui-form-label">
                <span class="x-red"></span>信誉等级
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.credit == 3 ? 'A':(customer.credit == 2?'B':'C')}"
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>


        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>录入人
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.createEmp.emplRealName}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

            <label class="layui-form-label">
                <span class="x-red"></span>最后修改人
            </label>
            <div class="layui-input-inline">
                <input disabled value="${customer.updateEmp.emplRealName}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>录入时间
            </label>
            <div class="layui-input-inline">
                <input disabled value='<fmt:formatDate type="both" value="${customer.createTime}"/>'
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>

            <label class="layui-form-label">
                <span class="x-red"></span>修改时间
            </label>
            <div class="layui-input-inline">
                <input disabled value='<fmt:formatDate type="both" value="${customer.updateTime}"/>'
                       class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>联系地址
            </label>
            <div class="layui-input-inline">
                <textarea disabled style="resize:both;overflow:auto;width: 510px"
                          class="layui-textarea">${customer.addr}</textarea>
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red"></span>备注信息
            </label>
            <div class="layui-input-inline">
                <textarea disabled style="resize:both;overflow:auto;width: 510px"
                          class="layui-textarea">${customer.note}</textarea>
            </div>
            <div class="layui-form-mid layui-word-aux">
            </div>
        </div>
    </form>
</div>
</body>

</html>